package com.yt.product.models.dto;

import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;

import com.yt.common.dto.BaseDTO;

/**
 * 购物车DTO
 *
 * @author lvzeming
 * @Date 2025-08-22 15:52:56
 */
@Data
@TableName("shopping_cart")
@ApiModel(value="购物车对象", description="购物车对象")
public class ShoppingCartDTO extends BaseDTO implements Serializable {

    @ApiModelProperty(value = "乐观锁")
    private Integer revision;
    @ApiModelProperty(value = "用户ID")
    private Long userId;
    @ApiModelProperty(value = "产品ID")
    private Long productId;
    @ApiModelProperty(value = "单价")
    private BigDecimal price;
    @ApiModelProperty(value = "产品图片")
    private String pic;
    @ApiModelProperty(value = "总价")
    private BigDecimal totalPrice;
    @ApiModelProperty(value = "数量")
    private Integer num;
}